package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;

/**
 * A DTO for the ClaimsInstruction entity.
 */
public class ClaimsInstructionDTO implements Serializable {

    private Long id;

    private String title1;

    private String info;

    private Long productId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle1() {
        return title1;
    }

    public void setTitle1(String title1) {
        this.title1 = title1;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ClaimsInstructionDTO claimsInstructionDTO = (ClaimsInstructionDTO) o;
        if(claimsInstructionDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), claimsInstructionDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "ClaimsInstructionDTO{" +
            "id=" + getId() +
            ", title1='" + getTitle1() + "'" +
            ", info='" + getInfo() + "'" +
            "}";
    }
}
